<template>
  <div class="information">
    <div class="btnRow">
      <el-button type="primary">新增</el-button>
    </div>
    <div class="record">
      <el-table :data="tableData" style="width: 100%">
        <el-table-column label="操作" width="200">
          <template slot-scope="scope">
            <el-link type="primary" @click="leaveHospital(scope.row)">详情</el-link>
            <el-link type="success" @click="leaveHospital(scope.row)">编辑</el-link>
            <el-link type="danger" @click="transferDepartment(scope.row)">删除</el-link>
          </template>
        </el-table-column>
        <el-table-column prop="id" label="序号"></el-table-column>
        <el-table-column prop="title" label="标题"></el-table-column>
        <el-table-column prop="time" label="标题"></el-table-column>
      </el-table>
    </div>
    <div class="page">
      <el-pagination
        align="right"
        background
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="pageIndex"
        :page-sizes="[5, 10]"
        :page-size="pageSize"
        layout="total, sizes, prev, pager, next"
        :total="totalNumber"
        style="margin-top: 58px; margin-bottom: 40px"
      ></el-pagination>
    </div>
  </div>
</template>

<script>
export default {
  name: "information",
  data() {
    return {
      tableData: [
        {
          id: 1,
          title: "1231",
          time: "12313"
        }
      ]
    };
  },
  created() {},
  methods: {}
};
</script>

<style scoped>
.information {
  margin-left: 250px;
}
.btnRow {
  margin: 10px;
}
.page {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}
</style>